package cn.elead.it.sso.system.service;

import org.springframework.web.multipart.MultipartFile;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.gitee.elead.mybatisplus.service.BaseService;

import cn.elead.it.sso.system.model.User;

public interface IUserService extends BaseService<User> {

	public IPage<User> findPageList(Page<User> page, User user);
	
	public User findUser(String username);
	
	/**
	 * 修改头像
	 * 
	 * @param file
	 */
	public void updateAvatar(MultipartFile file);

	/**
	 * 定时同步用户
	 */
	void syncUser();

	/**
	 * 初始密码
	 * @throws Exception 
	 */
	void initPassword() throws Exception;


}
